<template>
  <!--  -->
  <div class="main">
    <div class="box">
      <div class="content" @click="gogogog">跳转</div>
      <div class="content" @click="del">删除</div>
      <div class="content" @click="add">加</div>
      <div class="content" @click="gomt">power</div>
    </div>
  </div>
</template>

<script setup>
import { onMounted } from "vue";
import useUtils from "@/utils";
const { $common, $router, $store, $global } = useUtils();

function gogogog() {
  // setTimeout(() => {
  $router.push("/layout/home");
  // });
}

function del() {
  $router.router.removeRoute("layout");

  console.log($router.router.getRoutes());
}

function gomt() {
  $router.push("/layout/power");
}

console.log("power");
</script>
<style lang="scss" scoped>
.box {
  height: 100%;
  overflow: hidden;
}
</style>
